﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace XboxShmup
{
    public class EnemyProjectile : Projectile
    {
        public EnemyProjectile(Game1 gameClass, int xPosition, int yPosition, Vector2 movementVector)
            : base(gameClass, xPosition, yPosition, movementVector)
        {
            damage = 10;
            objectType = ObjectType.EnemyProjectile;
            projectileLife = 10f;
            projectileMoveSpeed = 100f;
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            if (position.X < 0)
                bCleanUp = true;
        }
    }
}
